<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../css/banner.css">
    
</head>

<body>


    <div class="banner" id="a">
        <ul id="ul" class="u">
            <!-- <li class="show">1</li> -->

        </ul>
        <ol>
            <!-- <li class="dot active"></li> -->

        </ol>
        <p>
            <span id="prev">&lt;</span>
            <span id="next">&gt;</span>
        </p>
    </div>


    <script src="../js/banner.js"></script>
    <script>

        // 构造函数
        //    内部的变量都变成了属性  
        //    内部的函数都变成方法  且写在prototype上面

        //   注意  this指向的改变

    

        const imgArr = [1, 2, 3, 4, 5];

        const b1 = new Banner(imgArr, '#a');
       



    </script>

</body>

</html>